﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HTSManager
{
    class Securities
    {
        const string strSecurityIniFile = "c:\\windows\\wmts.ini";
        private iniUtil SecurityIni = new iniUtil(strSecurityIniFile);
        private bool _isCheckFirewall;
        private bool _isCheckKeySecurity;
        private bool _isCheckAOS;

        public bool isCheckFirewall
        {
            get
            {

                _isCheckFirewall = SecurityIni.GetIniValueToBoolean("FIREWALL", "IS_USE");
                return _isCheckFirewall;
            }
            set
            {
                _isCheckFirewall = value;
                SecurityIni.SetIniValueToBoolean("FIREWALL", "IS_USE", _isCheckFirewall);
            }
        }

        public bool isCheckKeySecurity
        {
            get
            {
                _isCheckKeySecurity = SecurityIni.GetIniValueToBoolean("KEY_SEC", "IS_USE");
                return _isCheckKeySecurity;
            }
            set
            {
                _isCheckKeySecurity = value;
                SecurityIni.SetIniValueToBoolean("KEY_SEC", "IS_USE", _isCheckKeySecurity);
            }
        }

        public bool isCheckAOS
        {
            get
            {
                _isCheckAOS = SecurityIni.GetIniValueToBoolean("SB", "IS_USE");
                return _isCheckAOS;
            }
            set
            {
                _isCheckAOS = value;
                SecurityIni.SetIniValueToBoolean("SB", "IS_USE", _isCheckAOS);
            }
        }

    }
}
